//package com.tanhua.controller;
//
//import com.tanhua.utils.R;
//import org.springframework.web.bind.annotation.*;
//
///**
// * @author user
// */
//@RestController
//@CrossOrigin
//@RequestMapping(value = "/user")
//public class AdminController {
//
//    //    @ApiOperation(value = "登陆")
//    @PostMapping("login")
//    //{"code":20000,"data":{"token":"admin"}}
//    public R login() {
//        return R.ok().data("token", "admin");
//    }
//
//    //    @ApiOperation(value = "用户信息")
//    @GetMapping("info")
//    //{"code":20000,"data":{"roles":["admin"],"name":"admin","avatar":"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif"}}
//    public R info() {
//        return R.ok().data("roles", "admin")
//                .data("name", "admin")
//                .data("avatar", "https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
//    }
//
//}
